#!/bin/bash

# Get the ID of the first running container
CONTAINER_ID=$(sudo docker ps -q | head -1)

# Check if any containers are running
if [ -z "$CONTAINER_ID" ]; then
    echo "No running containers found!"
    exit 1
fi

echo "Connecting to container: $CONTAINER_ID"

# Connect to the container
sudo docker exec -it $CONTAINER_ID /bin/bash
